- Description:
This key defines which order an option in the Sort dropdown should use to sort files in your Collection browser.
CloudCannon will sort files according to the value of
sort_options[*].keyfor each option in the Sort dropdown.- Appears in:
└── collections_config └── * └── sort_options └── [*] └── order- Type:
string- Default value:
ascending- Allowed values:
ascendingdescendingascdesc- Examples:
In this example, the "Author (A-Z)" option in the Sort dropdown will sort files in the
blogCollection browser in ascending order.Copied to clipboardcollections_config: blog: sort_options: - key: author order: ascending label: Author (A-Z){ "collections_config": { "blog": { "sort_options": [ { "key": "author", "order": "ascending", "label": "Author (A-Z)" } ] } } }